﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="admin_login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>书畅网登录页面</title>
    <link href="css/login.css" rel="stylesheet" type="text/css">
    <script language="javascript" type="text/javascript">
        function setUserNameClass(obj)
        {
            if (obj.value != "")
            {
                obj.style.backgroundPosition = "0 -32px";
            }
            else
            {
                obj.style.backgroundPosition = "";
            }
        }

        function win_load()
        {
            setUserNameClass(document.getElementById('<%=this.txtUserName.ClientID %>'));
            setUserNameClass(document.getElementById('<%=this.txtPassWord.ClientID %>'));
        }
    </script>
</head>
<body class="login_boxb" onload="win_load();">
    <form id="form1" runat="server">
    <div id="div1" class="loginlogo">
        <img src="img/logob.png" alt="Logo" />
    </div>
    <div class="notification notifyError loginNotify">
        Invalid username or password. (Type anything)</div>
    <div class="loginbox">
        <div class="loginbox_inner">
            <div class="loginbox_content">
                <asp:TextBox ID="txtUserName" onblur="setUserNameClass(this);" CssClass="username" runat="server"></asp:TextBox>
                <asp:TextBox ID="txtPassWord" onblur="setUserNameClass(this);" CssClass="password"  TextMode="Password" runat="server"></asp:TextBox>
                <asp:Button ID="btnLogin"  runat="server" Text="登 陆" CssClass="submit" 
                    onclick="btnLogin_Click" />
            </div>
        </div>
    </div>
    <div class="loginoption">
        <a href="" class="cant" id="meg" runat="server"  style="font-family: 宋体; font-size: 12px; color: red"></a>
         <asp:CheckBox ID="chkSaveUser" runat="server" />
        记住用户名
    </div>
    </form>
</body>
</html>
